#!/bin/bash
# Script for running the Judge0 API server.
#
# Usage: ./scripts/server
#
source ./scripts/load-config

[[ -f tmp/pids/server.pid ]] && rm -f tmp/pids/server.pid

rails db:create db:migrate db:seed
rails s -b 0.0.0.0
